package org.longgang.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * position
 * 
 * @author
 */
public class Position implements Serializable {
	/**
	 * 职位id
	 */
	private Integer positionid;

	/**
	 * 公司id
	 */
	private Integer companyid;

	/**
	 * 职位名字
	 */
	private String position;

	/**
	 * 工作地点
	 */
	private String workplace;

	/**
	 * 工作类型
	 */
	private String classification;

	/**
	 * 工作部门
	 */
	private String department;

	/**
	 * 薪水
	 */
	private String salary;

	/**
	 * 教育要求
	 */
	private String edurequest;

	/**
	 * 工作经验
	 */
	private String experience;

	/**
	 * 工作描述
	 */
	private String statement;

	/**
	 * 联系邮箱
	 */
	private String email;

	/**
	 * 浏览数
	 */
	private Integer browsingnumber;

	/**
	 * 发布日期
	 */
	private Date releasedate;

	/**
	 * 截止日期
	 */
	private String deaddate;

	/**
	 * 发布状态
	 */
	private Integer status;

	/**
	 * 备用
	 */
	private String b1;

	/**
	 * 备用
	 */
	private String b2;

	private static final long serialVersionUID = 1L;

	public Integer getPositionId() {
		return positionid;
	}

	public void setPositionId(Integer positionid) {
		this.positionid = positionid;
	}

	public Integer getCompanyId() {
		return companyid;
	}

	public void setCompanyId(Integer companyid) {
		this.companyid = companyid;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getWorkplace() {
		return workplace;
	}

	public void setWorkplace(String workplace) {
		this.workplace = workplace;
	}

	public String getClassification() {
		return classification;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}

	public String getEduRequest() {
		return edurequest;
	}

	public void setEduRequest(String edurequest) {
		this.edurequest = edurequest;
	}

	public String getExperience() {
		return experience;
	}

	public void setExperience(String experience) {
		this.experience = experience;
	}

	public String getStatement() {
		return statement;
	}

	public void setStatement(String statement) {
		this.statement = statement;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getBrowsingNumber() {
		return browsingnumber;
	}

	public void setBrowsingNumber(Integer browsingnumber) {
		this.browsingnumber = browsingnumber;
	}

	public Date getReleaseDate() {
		return releasedate;
	}

	public void setReleaseDate(Date releasedate) {
		this.releasedate = releasedate;
	}

	public String getDeadDate() {
		return deaddate;
	}

	public void setDeadDate(String deaddate) {
		this.deaddate = deaddate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getB1() {
		return b1;
	}

	public void setB1(String b1) {
		this.b1 = b1;
	}

	public String getB2() {
		return b2;
	}

	public void setB2(String b2) {
		this.b2 = b2;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		Position other = (Position) that;
		return (this.getPositionId() == null ? other.getPositionId() == null
				: this.getPositionId().equals(other.getPositionId()))
				&& (this.getCompanyId() == null ? other.getCompanyId() == null
						: this.getCompanyId().equals(other.getCompanyId()))
				&& (this.getPosition() == null ? other.getPosition() == null
						: this.getPosition().equals(other.getPosition()))
				&& (this.getWorkplace() == null ? other.getWorkplace() == null
						: this.getWorkplace().equals(other.getWorkplace()))
				&& (this.getClassification() == null ? other.getClassification() == null
						: this.getClassification().equals(other.getClassification()))
				&& (this.getDepartment() == null ? other.getDepartment() == null
						: this.getDepartment().equals(other.getDepartment()))
				&& (this.getSalary() == null ? other.getSalary() == null : this.getSalary().equals(other.getSalary()))
				&& (this.getEduRequest() == null ? other.getEduRequest() == null
						: this.getEduRequest().equals(other.getEduRequest()))
				&& (this.getExperience() == null ? other.getExperience() == null
						: this.getExperience().equals(other.getExperience()))
				&& (this.getStatement() == null ? other.getStatement() == null
						: this.getStatement().equals(other.getStatement()))
				&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
				&& (this.getBrowsingNumber() == null ? other.getBrowsingNumber() == null
						: this.getBrowsingNumber().equals(other.getBrowsingNumber()))
				&& (this.getReleaseDate() == null ? other.getReleaseDate() == null
						: this.getReleaseDate().equals(other.getReleaseDate()))
				&& (this.getDeadDate() == null ? other.getDeadDate() == null
						: this.getDeadDate().equals(other.getDeadDate()))
				&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
				&& (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
				&& (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getPositionId() == null) ? 0 : getPositionId().hashCode());
		result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
		result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
		result = prime * result + ((getWorkplace() == null) ? 0 : getWorkplace().hashCode());
		result = prime * result + ((getClassification() == null) ? 0 : getClassification().hashCode());
		result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
		result = prime * result + ((getSalary() == null) ? 0 : getSalary().hashCode());
		result = prime * result + ((getEduRequest() == null) ? 0 : getEduRequest().hashCode());
		result = prime * result + ((getExperience() == null) ? 0 : getExperience().hashCode());
		result = prime * result + ((getStatement() == null) ? 0 : getStatement().hashCode());
		result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
		result = prime * result + ((getBrowsingNumber() == null) ? 0 : getBrowsingNumber().hashCode());
		result = prime * result + ((getReleaseDate() == null) ? 0 : getReleaseDate().hashCode());
		result = prime * result + ((getDeadDate() == null) ? 0 : getDeadDate().hashCode());
		result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
		result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
		result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", positionid=").append(positionid);
		sb.append(", companyid=").append(companyid);
		sb.append(", position=").append(position);
		sb.append(", workplace=").append(workplace);
		sb.append(", classification=").append(classification);
		sb.append(", department=").append(department);
		sb.append(", salary=").append(salary);
		sb.append(", edurequest=").append(edurequest);
		sb.append(", experience=").append(experience);
		sb.append(", statement=").append(statement);
		sb.append(", email=").append(email);
		sb.append(", browsingnumber=").append(browsingnumber);
		sb.append(", releasedate=").append(releasedate);
		sb.append(", deaddate=").append(deaddate);
		sb.append(", status=").append(status);
		sb.append(", b1=").append(b1);
		sb.append(", b2=").append(b2);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}

	public Position() {
		super();
	}

	public Position(Integer companyid, String position, String workplace, String classification, String department,
			String salary, String edurequest, String experience, String statement, String email, String deaddate,
			String b1, String b2) {
		super();
		this.companyid = companyid;
		this.position = position;
		this.workplace = workplace;
		this.classification = classification;
		this.department = department;
		this.salary = salary;
		this.edurequest = edurequest;
		this.experience = experience;
		this.statement = statement;
		this.email = email;
		this.deaddate = deaddate;
		this.b1 = b1;
		this.b2 = b2;
	}

	public Position(Integer positionid, Integer status) {
		super();
		this.positionid = positionid;
		this.status = status;
	}

	public Position(Integer positionid, Integer companyid, String position, String workplace, String classification,
			String department, String salary, String edurequest, String experience, String statement, String email,
			String deaddate, String b1, String b2) {
		super();
		this.positionid = positionid;
		this.companyid = companyid;
		this.position = position;
		this.workplace = workplace;
		this.classification = classification;
		this.department = department;
		this.salary = salary;
		this.edurequest = edurequest;
		this.experience = experience;
		this.statement = statement;
		this.email = email;
		this.deaddate = deaddate;
		this.b1 = b1;
		this.b2 = b2;
	}

	public Position(Integer positionid) {
		super();
		this.positionid = positionid;
	}

	public Position(Integer positionid, Integer companyid, Integer status) {
		super();
		this.positionid = positionid;
		this.companyid = companyid;
		this.status = status;
	}


}